import asyncio

# 同步调用async
async def async_function():
    return "Hello from async"

# 同步调用
def sync_call():
    result = asyncio.run(async_function())
    print(result)  # 输出: Hello from async

sync_call()